package com.shixun.milktea.service;

import com.github.pagehelper.PageInfo;
import com.shixun.milktea.entity.Order;
import com.baomidou.mybatisplus.extension.service.IService;

import com.shixun.milktea.vo.*;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zrs
 * @since 2022-06-07
 */
public interface OrderService extends IService<Order> {
    /*
     * @Description: 修改订单内容
     * @param order: 需要更新的订单
     * @return: java.lang.Integer
     */
    public Integer updateOrder(Order order);
    /*
     * @Description:获得所有订单以及明细
     * @return: java.util.List<com.shixun.milktea.entity.Order>
     */
    List<Order> getAllOrderAndDetails();

    PageInfo getOrderPage(Integer pageNo,Integer pageSize);

    List<SaleVo> getSaleCount();

    List<MtlistVo> getGroupFiveMt();

    List<Order> getOrderByConsumerId(Integer consumerId);


    List<Order> getOrderByIdAndStatus(Integer consumerId, String orderStatus);

    Integer addNewOrder(OrderVo orderVo);

    PageInfo getOrderPageByPhone(PhoneVo phoneVo);
}
